﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Ras2Logic;

namespace Ras2Win
{
    /// <summary>
    /// Klasinn SelectSong
    /// </summary>
    public partial class SelectSong : Form
    {
        #region Member breytur

        /// <summary>
        /// Member breyta sem heldur utan um eitt lag.
        /// </summary>
        private Song m_song;

        /// <summary>
        /// Memberbreyta sem geymir ID lags
        /// </summary>
        private int m_songID;

        #endregion

        #region Smiðir

        /// <summary>
        /// Færibreytulaus smiður
        /// </summary>
        public SelectSong()
        {
            InitializeComponent();
        }

        #endregion

        #region Get / Set föll

        /// <summary>
        /// GetSet fall fyrir breytuna Song sem er af taginu Song.
        /// </summary>
        public Song Song
        {
            get
            {
                return m_song;
            }
            set
            {
                m_song = value;
            }
        }

        /// <summary>
        /// GetSet fall fyrir breytuna ListSeat sem er af taginu string.
        /// </summary>
        public string ListSeat
        {
            get
            {
                return m_txtListSeat.Text;
            }
            set
            {
                m_txtListSeat.Text = value;
            }
        }
        
        /// <summary>
        /// GetSet fall fyrir breytuna SongID sem er af taginu int.
        /// </summary>
        public int SongID
        {
            get
            {
                return m_songID;
            }
            set
            {
                m_songID = value;
            }
        }

        #endregion

        #region Private föll

        /// <summary>
        /// Fall sem setur song Id í memberbreytuna m_songID
        /// Kallað í frá formload og buttonclick
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SetSongID(object sender, EventArgs e)
        {
            m_songID = m_selectSongView.SelectedSongID;
        }

        #endregion

        #region Public föll

        #endregion

    }
}
